package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DsInboundmanagementMapper;
import com.ruoyi.system.domain.DsInboundmanagement;
import com.ruoyi.system.service.IDsInboundmanagementService;

/**
 * 入库管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
@Service
public class DsInboundmanagementServiceImpl implements IDsInboundmanagementService 
{
    @Autowired
    private DsInboundmanagementMapper dsInboundmanagementMapper;

    /**
     * 查询入库管理
     * 
     * @param inboundId 入库管理主键
     * @return 入库管理
     */
    @Override
    public DsInboundmanagement selectDsInboundmanagementByInboundId(Long inboundId)
    {
        return dsInboundmanagementMapper.selectDsInboundmanagementByInboundId(inboundId);
    }

    /**
     * 查询入库管理列表
     * 
     * @param dsInboundmanagement 入库管理
     * @return 入库管理
     */
    @Override
    public List<DsInboundmanagement> selectDsInboundmanagementList(DsInboundmanagement dsInboundmanagement)
    {
        return dsInboundmanagementMapper.selectDsInboundmanagementList(dsInboundmanagement);
    }

    /**
     * 新增入库管理
     * 
     * @param dsInboundmanagement 入库管理
     * @return 结果
     */
    @Override
    public int insertDsInboundmanagement(DsInboundmanagement dsInboundmanagement)
    {
        return dsInboundmanagementMapper.insertDsInboundmanagement(dsInboundmanagement);
    }

    /**
     * 修改入库管理
     * 
     * @param dsInboundmanagement 入库管理
     * @return 结果
     */
    @Override
    public int updateDsInboundmanagement(DsInboundmanagement dsInboundmanagement)
    {
        return dsInboundmanagementMapper.updateDsInboundmanagement(dsInboundmanagement);
    }

    /**
     * 批量删除入库管理
     * 
     * @param inboundIds 需要删除的入库管理主键
     * @return 结果
     */
    @Override
    public int deleteDsInboundmanagementByInboundIds(Long[] inboundIds)
    {
        return dsInboundmanagementMapper.deleteDsInboundmanagementByInboundIds(inboundIds);
    }

    /**
     * 删除入库管理信息
     * 
     * @param inboundId 入库管理主键
     * @return 结果
     */
    @Override
    public int deleteDsInboundmanagementByInboundId(Long inboundId)
    {
        return dsInboundmanagementMapper.deleteDsInboundmanagementByInboundId(inboundId);
    }
}
